home *** CD-ROM | disk | FTP | other *** search
- ;OCL{{{}}}
- ;OCL{{{ comments
- ; simulate the tds-operations TOP and BOTTOM, which jump to top and bottom
- ; of currently OPENED fold.
- ;OCL}}}
- @if-using not(ocl-file-mt-fold)
- @use (ocl-file-mt-fold)
- ;OCL{{{ top
- ( deffun mtool-top
- ( if in-prompt ( return-from-macro ) fi
- screen-off
- if test-end-fold ( previous-line ) fi
- while and(not(test-begin-fold),not(test-top))
- ( if test-end-fold ( mtool-top ) fi
- previous-line
- )
- screen-on
- redraw-display
- )
- )
- ;OCL}}}
- ;OCL{{{ bot
- ( deffun mtool-bot
- ( if in-prompt ( return-from-macro ) fi
- screen-off
- if test-begin-fold (next-line) fi
- while and(not(test-end-fold),not(test-bottom))
- ( if test-begin-fold ( mtool-bot ) fi
- next-line
- )
- screen-on
- redraw-display
- )
- )
- ;OCL}}}
- @fi
-